package com.example.voicechat

interface BaseChatService {
    interface ChatCallback {
        fun onResponse(response: String, history: List<Pair<String, String>>)  // 保留用于兼容
        fun onPartialResponse(text: String, isEnd: Boolean)  // 新增用于流式输出
        fun onError(error: String)
    }

    fun sendMessage(message: String, callback: ChatCallback)
} 